﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Seminar: StateForge::Examples::Seminar::SeminarTest Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Seminar: StateForge::Examples::Seminar::SeminarTest Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_seminar.html">Seminar</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html">SeminarTest</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::Seminar::SeminarTest Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::Seminar::SeminarTest" -->
<p><a href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a8cc6946423a913397533871c74e8878a">Setup</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#aaf99f3caf3ed1b0cfb77a4cffdcccc56">TearDown</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a38db8161c5ee1789980ce826103de6c4">Start</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad169688cdc75e9933c120d2a10257c32">StandardEnrollment</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a9829d3cf5b886e5e5b326a393419836a">DisastrousEnrollment</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SeminarContext&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_actuator.html">SeminarActuator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#af59cd000ef7d55550bedd27158469e87">actuator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">MockRepository&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IObserver&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_student.html">Student</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad2bbdb71605ead1a4a88d2a28530a1ea">alice</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_student.html">Student</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ac6cdd9fb239bd1c4a909882c20bf03b6">beatrice</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_student.html">Student</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#adc64d9017bb62ca92a855c144c02c060">carla</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a> = &quot;SeminarContext&quot;</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00010">10</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9829d3cf5b886e5e5b326a393419836a"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::DisastrousEnrollment" ref="a9829d3cf5b886e5e5b326a393419836a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Seminar::SeminarTest::DisastrousEnrollment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00110">110</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Ordered())
                {
                    <span class="comment">// this.context.EvStudentEnrollRequest(alice);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentEnrollRequest&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvStudentEnrollRequest(beatrice);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;Full&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentEnrollRequest[(mySeminar.StudentsCount + 1) == mySeminar.MaxStudents]&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvStudentEnrollRequest(alice);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;Full&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;Full&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentEnrollRequest&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvStudentDropped(this.beatrice);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;Full&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;Full&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentDropped[mySeminar.HasStudentInWaitingList()]&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvStudentDropped(this.alice);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;Full&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentDropped&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvTermStarted();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;BeingTaught&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;TermStarted&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <span class="stringliteral">&quot;Enrollment&quot;</span>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvStudentDropped(this.carla);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;BeingTaught&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;End&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentDropped[mySeminar.IsEmpty()]&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Playback())
            {
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentEnrollRequest(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad2bbdb71605ead1a4a88d2a28530a1ea">alice</a>);
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentEnrollRequest(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ac6cdd9fb239bd1c4a909882c20bf03b6">beatrice</a>);
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentEnrollRequest(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#adc64d9017bb62ca92a855c144c02c060">carla</a>);

                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentDropped(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ac6cdd9fb239bd1c4a909882c20bf03b6">beatrice</a>);
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentDropped(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad2bbdb71605ead1a4a88d2a28530a1ea">alice</a>);

                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.TermStarted();
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentDropped(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#adc64d9017bb62ca92a855c144c02c060">carla</a>);


            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a8cc6946423a913397533871c74e8878a"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::Setup" ref="a8cc6946423a913397533871c74e8878a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Seminar::SeminarTest::Setup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00022">22</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a> = <span class="keyword">new</span> MockRepository();
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#af59cd000ef7d55550bedd27158469e87">actuator</a> = <span class="keyword">new</span> SeminarActuator();
            <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a> = <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.StrictMock&lt;IObserver&gt;();
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a> = <span class="keyword">new</span> SeminarContext(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#af59cd000ef7d55550bedd27158469e87">actuator</a>);
            this.context.Observer = <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>;

            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad2bbdb71605ead1a4a88d2a28530a1ea">alice</a> = <span class="keyword">new</span> Student() { Name = <span class="stringliteral">&quot;Alice&quot;</span> };
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ac6cdd9fb239bd1c4a909882c20bf03b6">beatrice</a> = <span class="keyword">new</span> Student() { Name = <span class="stringliteral">&quot;Beatrice&quot;</span> };
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#adc64d9017bb62ca92a855c144c02c060">carla</a> = <span class="keyword">new</span> Student() { Name = <span class="stringliteral">&quot;Carla&quot;</span> };
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ad169688cdc75e9933c120d2a10257c32"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::StandardEnrollment" ref="ad169688cdc75e9933c120d2a10257c32" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Seminar::SeminarTest::StandardEnrollment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00061">61</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Ordered())
                {
                    <span class="comment">// this.context.EvStudentEnrollRequest(alice);</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;StudentEnrollRequest&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvTermStarted();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;BeingTaught&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;TermStarted&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <span class="stringliteral">&quot;Enrollment&quot;</span>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvClassesEnded();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;BeingTaught&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;FinalExams&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;ClassesEnded&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                    <span class="comment">// this.context.EvExamsClosed();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a> = <span class="stringliteral">&quot;FinalExams&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a> = <span class="stringliteral">&quot;End&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a> = <span class="stringliteral">&quot;ExamsClosed&quot;</span>;
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">transition</a>));

                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Playback())
            {
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.StudentEnrollRequest(this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad2bbdb71605ead1a4a88d2a28530a1ea">alice</a>);

                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.TermStarted();

                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.ClassesEnded();

                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.ExamsClosed();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a38db8161c5ee1789980ce826103de6c4"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::Start" ref="a38db8161c5ee1789980ce826103de6c4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Seminar::SeminarTest::Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00042">42</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Ordered())
                {
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <span class="stringliteral">&quot;Root&quot;</span>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <span class="stringliteral">&quot;Enrollment&quot;</span>));
                    Expect.Call(() =&gt; this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">contextName</a>, <span class="stringliteral">&quot;OpenForEnrollment&quot;</span>));
                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">repository</a>.Playback())
            {
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">context</a>.EnterInitialState();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aaf99f3caf3ed1b0cfb77a4cffdcccc56"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::TearDown" ref="aaf99f3caf3ed1b0cfb77a4cffdcccc56" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Seminar::SeminarTest::TearDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00036">36</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {

        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="af59cd000ef7d55550bedd27158469e87"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::actuator" ref="af59cd000ef7d55550bedd27158469e87" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_actuator.html">SeminarActuator</a> <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#af59cd000ef7d55550bedd27158469e87">StateForge::Examples::Seminar::SeminarTest::actuator</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00013">13</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad2bbdb71605ead1a4a88d2a28530a1ea"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::alice" ref="ad2bbdb71605ead1a4a88d2a28530a1ea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_student.html">Student</a> <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ad2bbdb71605ead1a4a88d2a28530a1ea">StateForge::Examples::Seminar::SeminarTest::alice</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00019">19</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac6cdd9fb239bd1c4a909882c20bf03b6"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::beatrice" ref="ac6cdd9fb239bd1c4a909882c20bf03b6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_student.html">Student</a> <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#ac6cdd9fb239bd1c4a909882c20bf03b6">StateForge::Examples::Seminar::SeminarTest::beatrice</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00019">19</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="adc64d9017bb62ca92a855c144c02c060"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::carla" ref="adc64d9017bb62ca92a855c144c02c060" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_student.html">Student</a> <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#adc64d9017bb62ca92a855c144c02c060">StateForge::Examples::Seminar::SeminarTest::carla</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00019">19</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a148dfe1a9cd76d77982d4f1d43f95312"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::context" ref="a148dfe1a9cd76d77982d4f1d43f95312" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SeminarContext <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a148dfe1a9cd76d77982d4f1d43f95312">StateForge::Examples::Seminar::SeminarTest::context</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00012">12</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7d938ef2d40c0701945fc704d90c3ea2"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::contextName" ref="a7d938ef2d40c0701945fc704d90c3ea2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a7d938ef2d40c0701945fc704d90c3ea2">StateForge::Examples::Seminar::SeminarTest::contextName</a> = &quot;SeminarContext&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00016">16</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a88d7240a5cc94a0cabd68ee044fd3148"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::current" ref="a88d7240a5cc94a0cabd68ee044fd3148" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a88d7240a5cc94a0cabd68ee044fd3148">StateForge::Examples::Seminar::SeminarTest::current</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00017">17</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a80235923668f28a34f0c4871e5a54131"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::next" ref="a80235923668f28a34f0c4871e5a54131" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a80235923668f28a34f0c4871e5a54131">StateForge::Examples::Seminar::SeminarTest::next</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00017">17</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a51689cfe45ef9316efe7690815ae0676"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::observer" ref="a51689cfe45ef9316efe7690815ae0676" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IObserver <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a51689cfe45ef9316efe7690815ae0676">StateForge::Examples::Seminar::SeminarTest::observer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00015">15</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a0a8c6cfabdd2aaa5a6d963277c60ea2a"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::repository" ref="a0a8c6cfabdd2aaa5a6d963277c60ea2a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MockRepository <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a0a8c6cfabdd2aaa5a6d963277c60ea2a">StateForge::Examples::Seminar::SeminarTest::repository</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00014">14</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a90699eaeed4211c54993d760fa58fd1c"></a><!-- doxytag: member="StateForge::Examples::Seminar::SeminarTest::transition" ref="a90699eaeed4211c54993d760fa58fd1c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_test.html#a90699eaeed4211c54993d760fa58fd1c">StateForge::Examples::Seminar::SeminarTest::transition</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_test_8cs_source.html#l00017">17</a> of file <a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Test/SeminarTest/<a class="el" href="_seminar_test_8cs_source.html">SeminarTest.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
